
ac.skill('英雄1'){
    temp = '攻击触发',
    show_cd_num = 0,
    on_run = function(self,hero)
        hero:add_buff '英雄1-攻速'{
            data1 = self.data1,
            time = self.data2,
            skill = self,
        }
    end
}


local mt = ac.buff['英雄1-攻速']
mt.cover_type = 1
mt.cover_max = 3

function mt:on_add()
    local hero = self.owner
    local skill = self.skill
    skill.show_cd_num = skill.show_cd_num + 1
    self:gc(hero:add('攻击速度',self.data1))
    self:gc(function()
        skill.show_cd_num = skill.show_cd_num - 1
    end)
end